<?php
/*  AjaxWhois Pro 1.0 alpha1 for Joomla 1.5
*   by Uma Sharma bizguruji@softuff.org
*   Powered by Softuff eDevelopment - www.softuff.org
*
* @ Released under GNU/LGPL License : http://www.fsf.org/
**/

// ensure this file is being included by a parent file
if ( ! ( defined( '_VALID_AW' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }

jimport( 'joomla.application.component.view');

/**
* @package		Joomla
* @subpackage	Wrapper
*/
class AjaxwhoisViewConfig extends JView
{
	function display( $tpl = null )
	{
		$mainframe	= &JFactory::getApplication();
		$document	= &JFactory::getDocument();

		// Get the page/component configuration
		$params = &$mainframe->getParams();

		$menus	= &JSite::getMenu();
		$menu	= $menus->getActive();

		// because the application sets a default page title, we need to get it
		// right from the menu item itself
		$document->setTitle( $params->get( 'page_title' ) );

		$this->assignRef('params',		$params);

		parent::display($tpl);
	}
}
